package com.smart.manager.pop.entities.body;


import com.smart.common.entities.core.BaseSearch;
import com.smart.manager.pop.entities.assembler.PosterElement;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 支付中心-支付宝配置
 *
 * @author Administrator
 * @date 2022/10/31
 */

public class RBasicPoster {


    /**
     * 支付订单搜索条件
     *
     * @author xiaxuqiu
     * @date 2022/10/17
     */
    @Data
    @EqualsAndHashCode(callSuper = true)
    @ApiModel("RBasicPoster1")
    public static class SearchBody extends BaseSearch {

        @ApiModelProperty("海报标题")
        private String title;

    }


    @Data

    @ApiModel("RBasicPoster2")
    public static class EditBody implements Serializable {
        @ApiModelProperty(value = "海报标题")
        @NotBlank(message = "海报标题 不能为空")
        private String title;




        @ApiModelProperty(value = "图片网址")
        @NotBlank(message = "图片网址 不能为空")
        private String httpUrl;

        @ApiModelProperty(value = "存储磁盘路径")
        private String localPath;

        @ApiModelProperty(value = "海报图片宽度")
        @NotNull(message = "海报图片宽度 不能为空")
        private Integer width;

        @ApiModelProperty(value = "海报图片高度")
        @NotNull(message = "海报图片高度 不能为空")
        private Integer height;

        @ApiModelProperty(value = "海报元素列表")
        @Valid
        private List<PosterElement> elements;


    }


}
